package com.chushouya.manager.dto.admin.payment;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@ApiModel("保存用户收款方式DTO")
@Data
public class UserPaymentMethodSaveDTO {

    @ApiModelProperty("收款方式ID,新增不传")
    private Long paymentMethodId;

    @ApiModelProperty(value = "用户ID", required = true)
    @NotNull(message = "用户ID不能为空")
    private Long userId;

    @ApiModelProperty(value = "收款方式类型（1支付宝 2微信）", required = true)
    @NotNull(message = "收款方式类型不能为空")
    private Integer paymentType;

    @ApiModelProperty(value = "真实姓名", required = true)
    @NotBlank(message = "真实姓名不能为空")
    private String accountName;

    @ApiModelProperty(value = "收款账号", required = true)
    @NotBlank(message = "收款账号不能为空")
    private String accountNumber;

    @ApiModelProperty("状态（1正常 0禁用）")
    private Integer status;

    @ApiModelProperty("是否默认收款方式（1是 0否）")
    private Integer isDefault;

    @ApiModelProperty("备注")
    private String remark;
}
